﻿/*
 * Created by SharpDevelop.
 * User: JOHNNY
 * Date: 08-01-2015
 * Time: 15:31
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace aula14
{
	
	public class Stack<T>
	{
		int position;
		T[] data = new T[100];
		public void Push (T obj) { data[position++]= obj;}
		public T Pop() { return data[--position]; }
	}
	
	
	public class Program
	{
		public static void Main(string[] args)
		{
			Stack<int> stack = new Stack<int>();
			stack.Push(5);
			stack.Push(19);
			int x=stack.Pop();
			int y = stack.Pop();
		}
	}
}



